﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 我的 ASP.NET 应用程序</title>
    @Styles.Render("~/Content/css")
    <link href="~/Content/css.css" rel="stylesheet" />
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <div class="navbar navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                
                @*@Html.ActionLink("应用程序名称", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })*@
            </div>
            <div class="navbar-collapse collapse">
                @*<ul class="nav navbar-nav">
                    <li>@Html.ActionLink("主页", "Index", "Home")</li>
                    <li>@Html.ActionLink("关于", "About", "Home")</li>
                    <li>@Html.ActionLink("联系方式", "Contact", "Home")</li>
                </ul>*@
                <div>
                    <div class="nav l-nav" style="float:left;height:180px;"><img style="width:120px;height:60px;background-color:burlywood;" /><div id="date11" style="height:60px;background-color:aqua"></div></div>
                    <div class="nav r-nav" style="float:left;">
                        <div id="J_tags" class="jin-search_tag">
                            <a href="https://news.jin10.com/details.html?id=16811" target="_blank" style="background-color:#84CDC7" class="jin-btn jin-btn_mini jin-btn_red">周历壁纸</a>
                            <a href="https://datacenter.jin10.com/banks_orders" target="_blank" style="background-color:#6499E5" class="jin-btn jin-btn_mini jin-btn_red">投行仓位报告</a>
                            <a href="https://datacenter.jin10.com/reportType/dc_ssi_trends" target="_blank" style="background-color:#EFBC5B" class="jin-btn jin-btn_mini jin-btn_red">投机情绪</a>
                            <a href="https://jiaoyixia.com/" target="_blank" style="background-color:#EB6750" class="jin-btn jin-btn_mini jin-btn_red">交易侠</a>
                            <a href="https://fm.jin10.com/" target="_blank" style="background-color:#7BC8EA" class="jin-btn jin-btn_mini jin-btn_red">金十电台</a>
                            <a href="https://weektalk.jin10.com/" target="_blank" style="background-color:#94AECF" class="jin-btn jin-btn_mini jin-btn_red">周话题</a>
                        </div>

                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
            <script>
                //$.getJSON("http://api.k780.com/?app=life.time&appkey=32098&sign=3eb8615d7dd0f1151643569b328b3a19&format=json&jsoncallback=data", function (e) {
                //    if (e != null) {

                //        $("#date11").html(e.datetime_1);
                //    }
                //})
                //$.ajax({
                //    type: 'get',
                //    async: false,
                //    url: 'http://api.k780.com:88/?app=life.time&appkey=32098&sign=3eb8615d7dd0f1151643569b328b3a19&format=json&jsoncallback=data',
                //    dataType: 'jsonp',
                //    jsonp: 'callback',
                //    jsonpCallback: 'data',
                //    success: function (data) {
                //        if (data.success != '1') {
                //            alert(data.msgid + ' ' + data.msg);
                //            exit;
                //        }
                //        //遍历
                //        var description = "";
                //        for (var i in data.result) {
                //            var property = data.result[i];
                //            description += i + " = " + property + "\n";
                //        }
                //        alert(description);
                //    },
                //    error: function () {
                //        alert('fail');
                //    }
                //});

            </script>


        </div>
    </div>
    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p>&copy; @DateTime.Now.Year - 我的 ASP.NET 应用程序</p>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
    <script>
        var vm = {
            date:{}
        };
        function current(date) {
            var d = new Date(date), str = '';
            ///str += d.getFullYear() + '年'; //获取当前年份 
            str += d.getMonth() + 1 + '-'; //获取当前月份（0——11） 
            str += d.getDate() + ' ';
            str += d.getHours() + ':';
            str += d.getMinutes() + ':';
            str += d.getSeconds() + '';
            return str;
        }
        //setInterval(function () { $("#nowTime").html(current) }, 1000); 
        $(document).ready(function () {

            $.get("/Home/getdate", function (e) {
                if (e != null) {
                    vm.date = new Date(e.date);
                    vm.date.add
                        //setInterval(function () { $("#nowTime").html(current()) }, 1000); 
                        $("#date11").html("北京："+current(vm.date));
                    }
                })
            //$.ajax({
            //    type: 'get',
            //    async: true,
            //    url: '/Home/getdate',
            //    dataType: 'json',
            //    //jsonp: 'callback',
            //    //jsonpCallback: 'data',
            //    success: function (data) {
            //        if (data!=null) {
            //            alert(data);
            //        }
            //    },
            //    error: function () {
            //        alert('fail');
            //    }
            //});
        });
        function date1() {
            $.get("/Home/getdate", function (e) {
                if (e != null) {
                    alert(e.date)
                }
            })
        }
    </script>
</body>
</html>
